cc.Class({
    extends: cc.Component,

    properties: {
        btnClose: [cc.Button]
    },

    onLoad() {
        for(var i in this.btnClose) {
            this.btnClose[i].node.on('click', this.onClick, this);
        }
    },

    onClick(evt) {
        this.node.emit('close');
    }

});
